class ScratchCardAward < ApplicationRecord
  validates :name, presence: true, uniqueness: true
  validates :chance, presence: true, uniqueness: true, length: { maximum: 100 }

  has_many :user_scratch_card_awards, dependent: :destroy
  has_many :users, through: :user_scratch_card_awards
end
